<?php


namespace app\btApi\validate;


use think\Validate;

class UseraddValidate extends Validate
{
    protected $rule = [
        'username' => 'require|min:8|max:25',
        'password' => 'require|max:25',
        'avatar'=>'require'
    ];
    protected $message = [
        'avatar.require'=>'请上传头像',
        'username.require' => '用户名不能为空',
        'username.min' => '最少八个字符',
        'username.max' => '最多25个字符',
        'password.require' => '密码不能为空',
        'password.max' => '最多25个字符',
    ];
}